home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presentation Library 1993 Spring / ARPL-Spring-93-Partner-Edition.iso / Applications / Networking & Communications / GraceLAN Network Mgr. DEMO / Excel 3.0 Macros / App Counter.mac (.txt) < prev    next >
Encoding:
Excel Spreadsheet  |  1993-03-07  |  10.4 KB  |  141 lines  |  [XLM3/XCEL]

  1. Sheet: 
  2. (0, 1)        AppCounter (a)
  3. (0, 2)        command-option-a
  4. (1, 0)        fileName
  5. (1, 2)        Prompt for the app list export file
  6. (2, 0)        fileNum
  7. (2, 2)        Open the text file
  8. (3, 2)        If can't open the file then
  9. (4, 2)          report an error
  10. (5, 2)          and stop
  11. (6, 2)        end
  12. (7, 1)        
  13. (8, 0)        appName
  14. (8, 2)        Prompt for app name to count
  15. (9, 1)        
  16. (10, 2)        Setup the report
  17. (35, 1)        
  18. (36, 0)        appCount
  19. (36, 2)        Initialize the app counter
  20. (37, 0)        currUser
  21. (37, 2)        Initialize the current user
  22. (38, 0)        currZone
  23. (38, 2)        Initialize the current zone
  24. (39, 0)        currApp
  25. (39, 2)        Initialize the app text field
  26. (40, 1)        
  27. (41, 0)        lineRead
  28. (41, 2)        read a line from the text file
  29. (42, 2)        if eof or error, skip out of loop
  30. (43, 2)        skip if blank line
  31. (44, 2)        skip if app list heading
  32. (45, 2)        skip if 2nd header line
  33. (46, 1)        
  34. (47, 2)        if first char is a tab, then
  35. (48, 0)        pos
  36. (48, 2)        is there a matching app?
  37. (49, 2)        if so then
  38. (50, 2)          place the current user name
  39. (51, 2)          place the current zone
  40. (52, 0)        creat.pos
  41. (54, 0)        tab1.pos
  42. (55, 0)        tab2.pos
  43. (58, 2)          select the next line
  44. (59, 2)          and add 1 to the counter
  45. (60, 2)        end
  46. (61, 2)        else it's a name line
  47. (62, 0)        in.pos
  48. (63, 2)          set current user
  49. (64, 0)        asof.pos
  50. (65, 2)          and the current zone
  51. (66, 2)        end
  52. (67, 1)        
  53. (68, 2)        go back for another line
  54. (70, 0)        done
  55. (78, 1)        
  56. (79, 1)        
  57. (80, 1)        
  58. (81, 1)        
  59. (82, 1)        
  60. (83, 1)        
  61. (84, 1)        
  62. (85, 1)        
  63. (86, 1)        
  64. (87, 1)        
  65. (88, 1)        
  66. (89, 1)        
  67. (90, 1)        
  68. (91, 1)        
  69. (92, 1)        
  70. (93, 1)        
  71. (94, 1)        
  72. (95, 1)        
  73. (96, 1)        
  74. (97, 1)        
  75. (98, 1)        
  76. (99, 1)        
  77. (100, 1)        
  78. (101, 1)        
  79. (102, 1)        
  80. (103, 1)        
  81. (104, 1)        
  82. (105, 1)        
  83. (106, 1)        
  84. (107, 1)        
  85. (108, 1)        
  86. (109, 1)        
  87. (110, 1)        
  88. (111, 1)        
  89. (112, 1)        
  90. (113, 1)        
  91. (114, 1)        
  92. (115, 1)        
  93. (116, 1)        
  94. (117, 1)        
  95. (118, 1)        
  96. (119, 1)        
  97. (120, 1)        
  98. (121, 1)        
  99. (122, 1)        
  100. (123, 1)        
  101. (124, 1)        
  102. (125, 1)        
  103. (126, 1)        
  104. (127, 1)        
  105. (128, 1)        
  106. (129, 1)        
  107. (130, 1)        
  108. (131, 1)        
  109. (132, 1)        
  110. (133, 1)        
  111. (134, 1)        
  112. (135, 1)        
  113. (136, 1)        
  114. (137, 1)        
  115. (138, 1)        
  116. (139, 1)        
  117. (140, 1)        
  118. (141, 1)        
  119. (142, 1)        
  120. (143, 1)        
  121. (144, 1)        
  122. (145, 1)        
  123. (146, 1)        
  124. (147, 1)        
  125. (148, 1)        
  126. (149, 1)        
  127. (150, 1)        
  128. (151, 1)        
  129. (152, 1)        
  130. (153, 1)        
  131. (154, 1)        
  132. (155, 1)        
  133. (156, 1)        
  134. (157, 1)        
  135. (158, 1)        
  136. (159, 1)        
  137. (160, 1)        
  138. (161, 1)        
  139. (162, 1)        
  140. (163, 1)        
  141.